/*
 * Copyright 2020 tu.cn All right reserved. This software is the
 * confidential and proprietary information of tu.cn ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Tu.cn
 */
package cn.zjitc.algorithm.test;

import cn.zjitc.algorithm.linear.LinkList;

/**
 * @author dell
 * @date 2020/9/18 11:46
 */
public class LinkListTest2 {
    public static void main(String[] args) {
        //创建单向链表对象
        LinkList<String> sl = new LinkList<>();
        //测试插入
        sl.insert("姚明");
        sl.insert("科比");
        sl.insert("麦迪");
        sl.insert(1,"詹姆斯");

        for (String s : sl) {
            System.out.println(s);
        }
        System.out.println("--------------------");
        sl.reverse();
        for (String s : sl) {
            System.out.println(s);
        }
    }
}
